﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DOM;
namespace BIZ
{
 public   class TeachersInputTheGradeBIZ
    {
        public TeachersInputTheGradeBIZ()
        {
            //
            // TODO: 在此处添加构造函数逻辑
            //
        }
        public DataTable SelcetByStudentID(string studentID)
        {
            StudentDOM stu = new StudentDOM();
            DataTable dt = new DataTable();
            dt = stu.SelectById(studentID);
            return dt;
        }
        public string SelectByStudentName(string StudentName)
        {
            return null;
        }
        public bool InsertGrade(string studentID, string studentName, string grade)
        {
            return true;
        }
        public DataTable ShowAll()
        {
            DataTable dt = new DataTable();
            StudentDOM stu = new StudentDOM();
            dt = stu.SelectAll();
            return dt;
        }
        public bool InputGrade(string studentId, string grade)
        {
            TranscriptEntryDOM transcript = new TranscriptEntryDOM();
            bool b = false ;
            b = transcript.UpdateGrade(studentId, grade);
            return b;
        }
    }
}
